# name : gsDesign nSurv simple
# key : gsDesign.nSurv.simple
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# contributor: Shuguang Sun
# --
nSurv(
  # Lachin and Foulkes (1986) method
  # (fixed trial duration, T and minfup, proportion to gamma)
  # Kim and Tsiatis(1990) method
  # (fixed enrollment rates and enrollment duration/minimum follow-up)
  lambdaC = log(2) / ${1:12},
  hr = ${2:0.6},
  hr0 = ${3:1},
  R = ${4:rep(1, 10)},
  gamma = c(0.25, 0.25, 0.25, 0.50, 0.50, 0.50, 0.75, 0.75, 0.75, 1.00) * ${5:20},
  eta = ${6:0.001},
  minfup = ${7:5},
  T = null,
  beta = ${8:0.1},
  alpha = ${9:0.025})
